package com.sms.graduate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sms.graduate.entity.SmsClasscourse;
import com.sms.graduate.entity.dto.CourseDTO;

import java.util.List;

public interface SmsClasscourseService extends IService<SmsClasscourse> {

    /**
     * 查询课程
     * @param courseClass
     * @param courseTime
     * @return
     */
    List<SmsClasscourse> courseByClass(String courseClass,String courseTime);

    /**
     * 更新课程
     * @param dayWeek
     * @param courseTime
     * @param course
     * @return
     */
    Boolean updateCourse(String dayWeek,String courseTime,String course,String courseClass);

    /**
     * 新增课程
     * @param dayWeek
     * @param courseTime
     * @param course
     * @return
     */
    Boolean addCourse(String dayWeek,String courseTime,String course,String courseClass);

    /**
     * 查询课程是否存在
     * @param dayWeek
     * @param courseTime
     * @param courseClass
     * @return
     */
    Boolean selectCourse(String dayWeek,String courseTime,String courseClass);

    /**
     * 新增和更新课程
     * @param courseDTO
     * @param courseClass
     * @return
     */
    void updateAndAddCourse(CourseDTO courseDTO,String courseClass,String dayWeek);
}

